import request from '@/utils/request'

// 查询表单字段列表
export function listFormfield(query) {
  return request({
    url: '/modularbusiness/formfield/list',
    method: 'get',
    params: query
  })
}

// 查询表单字段详细
export function getFormfield(ffid) {
  return request({
    url: '/modularbusiness/formfield/' + ffid,
    method: 'get'
  })
}

// 新增表单字段
export function addFormfield(data) {
  return request({
    url: '/modularbusiness/formfield',
    method: 'post',
    data: data
  })
}

// 修改表单字段
export function updateFormfield(data) {
  return request({
    url: '/modularbusiness/formfield',
    method: 'put',
    data: data
  })
}

// 删除表单字段
export function delFormfield(ffid) {
  return request({
    url: '/modularbusiness/formfield/' + ffid,
    method: 'delete'
  })
}
